
.textChat_message_item{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px;
    margin-bottom: 4px;
    border-radius: var(--border-radius);
    transition: var(--transition);;
    &:hover{
        background: var(--hover);
    }
    .textChat_message_item_other{
        display: flex;
        width: 100%;
    }
    .textChat_message_item_my{
        display: flex;
        width: 100%;
    }
    .textChat_message_avatar{
        width: 40px;
        height: 40px;
        margin-right: 16px;
        img{
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
    }
    .textChat_message_content{
        flex: 1;
        .textChat_message_content_header{
            display: flex;
            margin-bottom: 4px;
            align-items: center;
            .textChat_message_content_username{
                font-weight: 600;
                margin-right: 6px;
            }
            .textChat_message_content_time{
                font-size: 12px;
                color: var(--text-tertiary);
            }
        }
        .textChat_message_contentBox{
            color: var(--text-secondary);
            line-height: 1.4;
            .textChat_message_content_imgs{
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
                gap: 10px;
                padding: 12px;
                margin-top: 12px;
                box-sizing: border-box;
                background: var(--bg-primary);
                border-radius: 8px;
                border: none;
                .textChat_message_content_imgs_item{
                    position: relative;
                    padding: 0;
                    border-radius: 6px;
                    overflow: hidden;
                    flex-direction: column;
                    align-items: flex-start;
                    max-width: 350px;
                    img{
                        width: 100%;
                        height: auto;
                        max-height: 220px;
                        object-fit: cover;
                        border-radius: 6px;
                        transition: transform 0.3s ease;
                    }
                }
            }
            .textChat_message_content_files{
                margin-top: 12px;
                margin-bottom: 8px;
                border: 1px solid var(--accent-secondary);
                border-radius: 8px;
                overflow: hidden;
                background: var(--bg-secondary);
                .textChat_message_content_files_header{
                    box-sizing: border-box;
                    padding: 10px 14px;
                    font-size: 13px;
                    font-weight: 600;
                    border-bottom: 1px solid var(--accent-secondary);
                    color: var(--text-tertiary);
                    background: var(--bg-light);
                }
                .textChat_message_content_files_item{
                    display: flex;
                    padding: 10px;
                    box-sizing: border-box;
                    gap: 14px;
                    align-items: center;
                    position: relative;
                    .file_icon{
                        width: 40px;
                        height: 40px;
                        background: #353744c4;
                        border-radius: 6px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-shrink: 0;
                        color: var(--primary-dark);
                        svg{
                            width: 22px;
                            height: 22px;
                        }
                    }
                    .file_info{
                        flex: 1;
                        min-width: 0;
                        .file_info_meta{
                            font-weight: 500;
                            color: var(--text-primary);
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            font-size: 14px;
                        }
                        .file_info_meta{
                            display: flex;
                            gap: 8px;
                            font-size: 12px;
                            color: var(--text-tertiary);
                            .file_info_meta_type{
                                text-transform: uppercase;
                                font-size: 11px;
                            }
                            .file_info_meta_size{

                            }
                        }
                    }
                    .file_download{
                        position: absolute;
                        right: 16px;
                        cursor: pointer;
                        width: 32px;
                        height: 32px;
                        svg{
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }
        .textChat_message_content_actions{
            display: flex;
            margin-top: 4px;
            align-items: center;
            .textChat_message_content_action{
                display: flex;
                color: var(--text-tertiary);
                font-size: 14px;
                margin-right: 16px;
                cursor: pointer;
                transition: var(--transition);
                svg{
                    width: 14px;
                    height: 14px;
                }
            }
        }
    }
}